package com.ynhenc.pta.routeRank.impl;

import com.ynhenc.pta.routeRank.*;

public class SectionListBus extends SectionListOracle {
	
	public double getVelocity_MeterPerSec() {
		return KmPerHour*50.0;
	}

	public SectionListBus(RouteRequest routeRequest) {
		super(TransitType.BUS, routeRequest);
	}

	public double getSearchRadius() {
		final double defRadius = 550;
		if (this.getRouteRequest().getScenario() == ScenarioRandom.getScenario()) {
			// 임의의 지점인 경우
			RouteRequest routeRequest = this.getRouteRequest();
			if (routeRequest == null) {
				return defRadius;
			} else {
				double radius = routeRequest.getSearchRadius(this.getTransitType());
				if (radius > 0) {
					return radius;
				} else {
					return defRadius; // 700
				}
			}
		} else {
			return 300;
		}
	}

	@Override
	public String getRouteDescription(String routeNo) {
		return routeNo + "번";
	}

	@Override
	public String getSqlNameRoute() {
		return "sql_110_bus_route_rad.sql";
		// return "sql_110_bus_route.sql";
	}

	@Override
	public String getSqlNamePath() {
		return "sql_112_bus_path.sql";
	}

}
